<?php 
namespace Common\Util;
class UserUtils {
	     
    
    //3表示项目,4表示现金券
    private static $SUB_ACTIVITY_TYPE_LIST=array("type_3"=>array(),"type_4"=>array());
    
    //2表示客妆,3表示项目,4表示现金券
    private static $REWARD_SET_TYPE_LIST=array("type_2"=>array(),"type_3"=>array(),"type_4"=>array());
    
    const REWARD_SET_SELL_GOODS_TYPE=1;
    
    public static function addSubActTypes($subActList){
        foreach($subActList as $vo){
            self::$SUB_ACTIVITY_TYPE_LIST['type_'.$vo['type']][]= $vo;
        } 
    }
    /**
     * 获取子活动中的项目类型
     * @return multitype:multitype:
     */
    public static function getProjectSubAct(){
        return self::$SUB_ACTIVITY_TYPE_LIST['type_3'];
    }
    /**
     * 获取子活动中的现金券类型
     * @return multitype:multitype:
     */
    public static function getCashCouponSubAct(){
        return self::$SUB_ACTIVITY_TYPE_LIST['type_4'];
    }
    /**
     * 组装
     * @param unknown $rewardSetList
     */
    public static function addRewardSets($rewardSetList){
        foreach($rewardSetList as $vo){
            self::$REWARD_SET_TYPE_LIST['type_'.$vo['goods_type']][]= $vo;
        }
    }
    /**
     * 项目
     * @return multitype:multitype:
     */
    public static function getProjectRewardSet(){
        return self::$SUB_ACTIVITY_TYPE_LIST['type_3'];
    }
    /**
     * 客妆
     * @return multitype:multitype:
     */
    public static function getGoodsRewardSet(){
        return self::$SUB_ACTIVITY_TYPE_LIST['type_2'];
    }
    /**
     * 现金券
     * @return multitype:multitype:
     */
    public static function getCouponRewardSet(){
        return self::$SUB_ACTIVITY_TYPE_LIST['type_4'];
    }
	 
}
?>